import 'package:floor/floor.dart';

import '../../utils/local_datetime.dart';

class LocalDateConverter extends TypeConverter<LocalDate, String> {
  @override
  LocalDate decode(String databaseValue) {
    return LocalDate.ofString(databaseValue);
  }

  @override
  String encode(LocalDate value) {
    return value.toString();
  }
}